package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-25
 * Time: 下午8:34
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_PDMX")
@Where(clause = "deleted!='1'")
public class Pdmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqPdmx", allocationSize = 1, sequenceName = "SEQ_BIZ_PDMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqPdmx")
    private Long id;

    /**
     * 卡号
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "KH_ID")
    private Kh kh;

    /**
     * 无税单价
     */
    private Double wsdj;

    /**
     * 账面数量
     */
    private Double zmsl;

    /**
     * 实盘数量
     */
    private Double spsl;

    /**
     * 盈亏数量
     */
    private Double yksl;

    /**
     * 盈亏金额
     */
    private Double ykje;

    /**
     * 库存盘点
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "KCPD_ID")
    private Kcpd kcpd;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Kh getKh() {
        return kh;
    }

    public void setKh(Kh kh) {
        this.kh = kh;
    }

    public Double getSpsl() {
        return spsl;
    }

    public void setSpsl(Double spsl) {
        this.spsl = spsl;
    }

    public Double getYksl() {
        return yksl;
    }

    public void setYksl(Double yksl) {
        this.yksl = yksl;
    }

    public Double getYkje() {
        return ykje;
    }

    public void setYkje(Double ykje) {
        this.ykje = ykje;
    }

    public Kcpd getKcpd() {
        return kcpd;
    }

    public void setKcpd(Kcpd kcpd) {
        this.kcpd = kcpd;
    }

    public Double getWsdj() {
        return wsdj;
    }

    public void setWsdj(Double wsdj) {
        this.wsdj = wsdj;
    }

    public Double getZmsl() {
        return zmsl;
    }

    public void setZmsl(Double zmsl) {
        this.zmsl = zmsl;
    }
}
